package com.example.administrator.exkotlin.jetpack.room.entity

import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * Author by lp,on 2020/11/19/019,11:41.
 */
@Entity
 data class User(var firstName:String ,var lastName:String,var age:Int) {
    //自增主键
    @PrimaryKey(autoGenerate = true)
    var id:Long=0

    override fun toString(): String {
        return "User(firstName='$firstName', lastName='$lastName', age=$age, id=$id)"
    }

}